function getRootPath() {
	var curWwwPath = window.document.location.href;
	var pathName = window.document.location.pathname;
	return curWwwPath.substring(0, curWwwPath.indexOf(pathName))
			+ pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
}
var rootPath = getRootPath();// 工程跟路径
document
		.write('<link href="'
				+ rootPath
				+ '/plugin/bootstrap-3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />');
document
		.write('<link href="'
				+ rootPath
				+ '/plugin/bootstrap-3.3.5/css/font-awesome.min.css" rel="stylesheet" type="text/css" />');
document
		.write('<link href="'
				+ rootPath
				+ '/assets/global/plugins/bootstrap-toastr/toastr.min.css" rel="stylesheet" type="text/css" />');

document
		.write('<script src="'
				+ rootPath
				+ '/plugin/forBootstrap/js/jquery-2.1.4.min.js" type="text/javascript"></script>');
document
		.write('<script src="'
				+ rootPath
				+ '/plugin/bootstrap-3.3.5/js/bootstrap.min.js" type="text/javascript" ></script>');
document
		.write('<script src="'
				+ rootPath
				+ '/plugin/forBootstrap/js/common-boots.js" type="text/javascript" ></script>');
document
		.write('<script src="'
				+ rootPath
				+ '/plugin/forBootstrap/js/dataform-boots.js" type="text/javascript" ></script>');
document
		.write('<script src="'
				+ rootPath
				+ '/assets/global/plugins/bootstrap-toastr/toastr.min.js" type="text/javascript" ></script>');
document
		.write('<script src="'
				+ rootPath
				+ '/assets/global/scripts/metronic.js" type="text/javascript" ></script>');
document
		.write('<script src="'
				+ rootPath
				+ '/assets/global/plugins/jquery.blockui.min.js" type="text/javascript" ></script>');